import request from "@/utils/request";

/*登陆返回token*/
export function userLogin(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

/*获取登陆用户信息*/
/*export const loginInfo = () => {
  return axios({
    url: '/user/login/info',
    method: 'get',
  })
}*/


/*退出登陆*/
export const logout = () => {
  return request({
    url: '/user/logout',
    method: 'post',
  })
}
